//
//  DerbyNSOdeResolver.h
//  DerbyOSSampler
//
//  Created by glenn andreas on 1/6/14.
//  Copyright (c) 2014 glenn andreas. All rights reserved.
//

#import <Foundation/Foundation.h>

// This is just a very thin wrapper around NSNetService/NSNetServiceBrowser
@protocol DerbyNSOdeResolverClient <NSObject>
- (void) addPeer: (NSNetService *) service uuid: (NSString *) uuid;
- (void) removePeer: (NSNetService *) service uuid: (NSString *) uuid;
@end

@interface DerbyNSOdeResolver : NSObject<NSNetServiceDelegate, NSNetServiceBrowserDelegate>
- (id) initWithRegistrationType: (NSString *) regType delegate: (id<DerbyNSOdeResolverClient>) delegate;
- (void) broadcastIdentity: (NSString *) name port: (NSInteger) port uuid: (NSString *) uuid boutId: (NSString *) boutId;

@end
